package com.ctshk.rpc.order.localfun.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 胡广
 * @since 2021/2/25
 */
@Data
@ApiModel(value = "AppQueryPayResultDTO对象", description = "当地玩乐订单详情")
public class AppQueryPayResultDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "销售单号")
    private String orderNumber;

    @ApiModelProperty(value = "支付结果,1:成功,0:失败")
    private Integer paymentResult;

    @ApiModelProperty(value = "支付结果,true:成功,false:失败")
    private boolean isSuccess;

    @ApiModelProperty(value = "查询编号")
    private String inquiryNumber;

    @ApiModelProperty("总金额")
    private BigDecimal amount;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty(value = "支付方式")
    private String paymentMethod;

    @ApiModelProperty(value = "支付方式时间")
    private LocalDateTime paymentDateTime;

    @ApiModelProperty(value = "付款到期时间")
    private LocalDateTime payExpireDate;

    @ApiModelProperty(value = "使用时间")
    private LocalDate useDate;

    @ApiModelProperty(value = "产品规格1")
    private String attrName1;

    @ApiModelProperty(value = "产品规格2")
    private String attrName2;

    @ApiModelProperty(value = "使用有效期类型(1 固定天数 ,2 指定日期区间)")
    private Integer validType;

    @ApiModelProperty(value = "几日有效")
    private Double validDay;

    @ApiModelProperty(value = "有效期起始")
    private LocalDate validDayBegin;

    @ApiModelProperty(value = "有效期截至")
    private LocalDate validDayEnd;

    @ApiModelProperty(value = "有效期天数")
    private Integer useDay;

    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd")
    private LocalDateTime gmtCreate;
}
